package com.example.fw;

public class ContactObject {
	public String id;
	public String firstname;
	public String lastname;
	public String address;
	public String home;
	public String mobile;
	public String work;
	public String email;
	public String email2;
	public String bDay;
	public String bMonth;
	public String bYear;
	public String newGroup;
	public String address2;
	public String phone2;
	public String fullName;

	@Override
	public String toString() {
		return "ContactObject [" + id + ", " + fullName + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((fullName == null) ? 0 : fullName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ContactObject other = (ContactObject) obj;
		if (fullName == null) {
			if (other.fullName != null)
				return false;
		} else if (!fullName.equals(other.fullName))
			return false;
		if (id != null && other.id != null) {
			return id.equals(other.id);
		}
		return true;
	}

	public ContactObject setId(String id) {
		this.id = id;
		return this;
	}

	public ContactObject setFullName(String fullName) {
		this.fullName = fullName;
		return this;
	}

	public String getFullName() {
		return firstname + " " + lastname;
	}

	public String getFirstname() {
		return firstname;
	}

	public ContactObject setFirstname(String firstname) {
		this.firstname = firstname;
		return this;
	}

	public String getLastname() {
		return lastname;
	}

	public ContactObject setLastname(String lastname) {
		this.lastname = lastname;
		return this;
	}

	public String getAddress() {
		return address;
	}

	public ContactObject setAddress(String address) {
		this.address = address;
		return this;
	}

	public String getHome() {
		return home;
	}

	public ContactObject setHome(String home) {
		this.home = home;
		return this;
	}

	public String getMobile() {
		return mobile;
	}

	public ContactObject setMobile(String mobile) {
		this.mobile = mobile;
		return this;
	}

	public String getWork() {
		return work;
	}

	public ContactObject setWork(String work) {
		this.work = work;
		return this;
	}

	public String getEmail() {
		return email;
	}

	public ContactObject setEmail(String email) {
		this.email = email;
		return this;
	}

	public String getEmail2() {
		return email2;
	}

	public ContactObject setEmail2(String email2) {
		this.email2 = email2;
		return this;
	}

	public String getbDay() {
		return bDay;
	}

	public ContactObject setbDay(String bDay) {
		this.bDay = bDay;
		return this;
	}

	public String getbMonth() {
		return bMonth;
	}

	public ContactObject setbMonth(String bMonth) {
		this.bMonth = bMonth;
		return this;
	}

	public String getbYear() {
		return bYear;
	}

	public ContactObject setbYear(String bYear) {
		this.bYear = bYear;
		return this;
	}

	public String getNewGroup() {
		return newGroup;
	}

	public ContactObject setNewGroup(String newGroup) {
		this.newGroup = newGroup;
		return this;
	}

	public String getAddress2() {
		return address2;
	}

	public ContactObject setAddress2(String address2) {
		this.address2 = address2;
		return this;
	}

	public String getPhone2() {
		return phone2;
	}

	public ContactObject setPhone2(String phone2) {
		this.phone2 = phone2;
		return this;
	}
}